import request from '@/utils/request'

export function download(params: object) {
  return request({
    url: '/common/download',
    method: 'get',
    params,
  })
}

export function getStatisall() {
  return request({
    url: '/manage/report/getStatisall',
    method: 'get',
  })
}

export function getRegionNodeList() {
  return request({
    url: '/common/region/nodeList',
    method: 'get',
  })
}

export function getIndustryList() {
  return request({
    url: '/system/industry/nodeList',
    method: 'get',
  })
}

export function getRoleList(params: object) {
  return request({
    url: '/system/role/list',
    method: 'get',
    params,
  })
}
export function getCollectionList(params: object) {
  return request({
    url: '/manage/collection/list',
    method: 'get',
    params,
  })
}
export function updateCollectionProduct(data: object) {
  return request({
    url: '/manage/collection/collect',
    method: 'post',
    data,
  })
}
